#
# Be sure to run `pod lib lint MediaSDK-iOS.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MediaSDK-iOS'
  s.version          = '0.2.2'
  s.summary          = 'Media SDK For iOS'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = 'Media SDK For iOS Can Record And Edit Video/Image'

  s.homepage         = 'https://git.work.yunyugz.com/AVMediaSDK/MediaSDK-IOS'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'huangyq' => 'huangyq@yunyugz.com' }
  s.source           = { :git => 'https://git.work.yunyugz.com/AVMediaSDK/MediaSDK-IOS.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
  s.swift_version = '5.0'

  s.source_files = 'MediaSDK-iOS/Classes/**/*.{h,m,swift}'
  
  s.resource_bundles = {
      'MediaSDK-iOS' => ['MediaSDK-iOS/Assets/*']
  }
  
  # Fix：MediaSDKCore.framework 下info.plist导致的 warning: duplicate output file
  # s.exclude_files = 'MediaSDK-iOS/Classes/Lib/**/*.plist'
   
   s.pod_target_xcconfig = {
     # This is needed by all pods that depend on Protobuf:
     'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
     # This is needed by all pods that depend on gRPC-RxLibrary:
     'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
     # 解决pod lib lint/repo push不支持i386编译，同时使用pod lib lint/repo push  --skip-import-validation
     'VALID_ARCHS[sdk=iphonesimulator*]' => ''
   }
   
   #添加pch文件
   s.prefix_header_contents = '#import "MediaSDK-Header.h"'
   
   s.vendored_frameworks = 'MediaSDK-iOS/Classes/Lib/*.framework'
   s.libraries = 'c++', 'z', 'iconv'
   s.frameworks = 'VideoToolbox', 'CoreMedia'
  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  s.dependency 'SVGAPlayer'
  s.dependency 'GPUImage'
  s.dependency 'SnapKit'
  s.dependency 'TYPagerController'
  s.dependency 'SDWebImage'
  s.dependency 'Masonry'
#  s.dependency 'MediaSDKCore'
end
